angular.module('AngularJJTest',['mongolab'], function($routeProvider, $locationProvider) {
	$routeProvider.when('/'	, {
		templateUrl: 'MainView.html',
		controller: MainCtrl
	});
		$routeProvider.when('/SPC', {
		templateUrl: 'Modules/SendPetition/Views/SPView.html',
		controller: SPController
	});
	$routeProvider.when('/RPC', {
		templateUrl: 'Modules/RequestPetition/Views/RPCView.html',
		controller: SPController
	});
	
});
	
function MainCtrl($scope, $route, $routeParams, $location) {
  $scope.$route = $route;
  $scope.$location = $location;
  $scope.$routeParams = $routeParams;
}
